package com.smbms.service;

import com.smbms.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserService {
    User getUserByLogin(Map<String,Object> paramsMap);

    int getUserCount(String userName, Integer userRole);

    List<User> getUserList(String userName, Integer userRole, Integer start, Integer pageSize);

    int delUser(Integer id);

    int getCountByUserCode(String userCode);

    int addUser(User user);

    User getUserById(Integer id);

    int getCountByUserCodeAndId(String userCode, Integer id);

    int updateUser(User user);

    List<User> getUserList2(String userName, Integer userRole);
}
